package net.zjitc.service;

import net.zjitc.pojo.Product;
import net.zjitc.utils.PageBean;

import java.util.List;

/**
 * Created by Administrator on 2017/11/22.
 */
public interface AdminProductService {
    PageBean<Product> findPage(int page, int pageSize);

    int addProduct(Product product);

    Product findByPid(String pid);

    int editProduct(Product product);

    int deleteProduct(String pid);

    PageBean<Product> findPageBeanByCid(int page, int pageSize, int cid);

    PageBean<Product> findPageBeanByCsid(int page, int pageSize, int csid);

    Product findBYPid(int pid);

    List<Product> findHot();

    List<Product> findNew();
}
